package com.yujistu.adapter;

import android.content.Context;
import android.support.v4.app.FragmentActivity;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import com.yujistu.R;
import com.yujistu.integration.bean.GroupClassEntity;

/**
 * Created by Win on 2015/11/6.
 */
public class GroupClassAdapter extends BaseListAdapter<GroupClassEntity> {

    public GroupClassAdapter(Context context) {
        super(context);

    }

    @Override
    public View getRealView(int position, View convertView, ViewGroup parent) {
        ViewHolder holder = null;
        if(convertView == null){
            holder = new ViewHolder(convertView);
            convertView = mInflater.inflate(R.layout.group_class_lite_item, null);
            convertView.setTag(holder);
        }else{
            holder = (ViewHolder) convertView.getTag();
        }

        GroupClassEntity  entity = mDatas.get(position);

        if(!TextUtils.isEmpty(entity.))

        return convertView;
    }

    public class ViewHolder extends BaseViewHolder{

        ImageView  image;
        TextView   titleTV;

        public ViewHolder(View view) {
            super(view);

            image = (ImageView)view.findViewById(R.id.iv_img);
            titleTV = (TextView)view.findViewById(R.id.tv_title);
        }
    }
}
